//
//  AllStatusViewController.swift
//  iPad_QQ
//
//  Created by 李善武 on 16/5/1.
//  Copyright © 2016年 李善武. All rights reserved.
//

import UIKit

class AllStatusViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // 设置导航条内容
        let seg = UISegmentedControl(items: ["全部","特别关心","好友动态","认证空间"])
        navigationItem.titleView = seg
        
        // 设置默认选中的切片
        seg.selectedSegmentIndex = 0
        
        // 设置字体
        seg.tintColor = UIColor.grayColor()
        seg.setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.blackColor()], forState: .Normal)
        // 监听点击
        seg.addTarget(self, action: nil, forControlEvents: .TouchUpInside)
    }

}
